﻿# 添加基础镜像
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
RUN apt-get update
# 安装ping curl ftp git
RUN apt install -y iputils-ping
RUN apt install -y curl
RUN apt install -y net-tools
RUN apt install -y ftp
RUN apt install -y git

# 安装kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN rm -rf kubectl